﻿<%@ Page Language="C#" AutoEventWireup="true" Codebehind="Index.aspx.cs" Inherits="LabMS.Web.Index" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>城环学院实验室管理系统</title>
    <link type="text/css" rel="stylesheet" href="style/screen.css" />

    <script src="../js/Common.js" type="text/javascript"></script>

    <!--[if lte IE 6]>
    <link type="text/css" rel="stylesheet" href="style/ie6.css" />
    <![endif]-->
    <!--[if lte IE 7]>
    <link type="text/css" rel="stylesheet" href="style/ie7.css" />
    <![endif]-->

    <script type="text/javascript">
        function openURL(URL,width,height)
        {
            openNewWin(URL,width,height);
        }
    </script>

</head>
<body class="frameBody">
    <div id="site">
        <form runat="server" id="form1" style="margin: 0px; padding: 0px;">
            <div id="head" class="clearfix">
                <div id="title">
                    <img alt="重庆大学城环学院实验室管理系统" src="pic/title.gif" title="重庆大学城环学院实验室管理系统" />
                </div>
                <div id="headRight">
                    <div id="userAction">
                        <div class="action">
                            <a onclick="openURL('User/PasswordModify.aspx',500,400)" class="current" target="_blank">
                                <img src="pic/modifyPass.gif" width="69" height="17" alt="修改密码" title="修改密码" /></a>
                            <a onclick="openURL('LabPersonnel/StaffPreview.aspx?ID=<%=StaffID %>&flag=look',650,600)"
                                class="current" target="_blank">
                                <img src="pic/userInfo.gif" width="69" height="17" alt="用户信息" title="用户信息" /></a>
                            <a href="javascript:window.location.href = 'Login.aspx?act=loginout';" class="current">
                                <img src="pic/quit.gif" width="69" height="17" alt="退出系统" title="退出系统" id="IMG1" /></a>
                        </div>
                    </div>
                </div>
            </div>
            <div id="navBar">
                <div id="menu">
                    <ul>
                        <li><a href="Home.aspx" class="current" target="contentFrame">首页</a></li>
                        <% 
                            for (int i = 0; i < listPlate.Count; ++i)
                            {
                                if (i != listPlate.Count - 1)
                                {
                               
                        %>
                        <li><a href="<%=listPlate[i].PageAddress %>" target="contentFrame">
                            <%=listPlate[i].Name %>
                        </a></li>
                        <%
                            }
                            else 
                            {
                        %>
                        <li class="last"><a href="<%=listPlate[i].PageAddress %>" target="contentFrame">
                            <%=listPlate[i].Name%>
                        </a></li>
                        <%
                            }
                          
                        } 
                        %>
                        <%--<li><a href="Structure/LabTeaching.aspx" target="contentFrame">实验教学</a></li>
                        <li><a href="Structure/openproject.aspx" target="contentFrame">实验室开放</a></li>
                        <li><a href="Structure/LabManagement.aspx" target="contentFrame">实验室管理</a></li>
                        <li><a href="Structure/LabEvalCon.aspx" target="contentFrame">实验室评估与建设</a></li>
                        <li><a href="Structure/LabPersonnel.aspx" target="contentFrame">实验室队伍</a></li>
                        <li><a href="Structure/Equipemt.aspx" target="contentFrame">仪器耗材设备管理</a></li>
                        <li><a href="Structure/BaseData.aspx" target="contentFrame">基本数据</a></li>
                        <li><a href="Structure/DailyOffice.aspx" target="contentFrame">日常办公</a></li>
                        <li><a href="Structure/DataReport.aspx" target="contentFrame">数据报表</a></li>
                        <li class="last"><a href="Structure/SystemMain.aspx" target="contentFrame">系统维护</a></li>--%>
                    </ul>
                </div>
                <div id="timeBar">
                    <label id="localtime">
                    </label>
                </div>
            </div>
            <div id="basicInfo">
                <div class="left">
                </div>
                <div class="menuTitle">
                    <label>
                        管理菜单</label>
                </div>
                <div class="sep">
                </div>
                <div class="info">
                    <ul>
                        <li>当前登录用户:
                            <label id="lbUserRealName" runat="server">
                            </label>
                        </li>
                        <li>当前IP:
                            <label>
                                <%= Request.ServerVariables["REMOTE_ADDR"] %>
                            </label>
                        </li>
                    </ul>
                </div>
                <div class="right">
                </div>
            </div>
        </form>
        <div id="structurePage">
            <iframe src="Home.aspx" frameborder="0" id="contentFrame" name="contentFrame" marginwidth="0"
                marginheight="0" scrolling="auto" width="100%" height="300" hspace="0"></iframe>
        </div>
    </div>

    <script type="text/javascript" src="js/jQuery/jquery-1.3.1.js"></script>

    <script type="text/javascript">
        $(function(){
            var h = $(document).height() - 130;
			if (jQuery.browser.msie) {
				h -= 20;
			}
			$("#structurePage")
				.find(">iframe").attr("height", h)
				.end()
			.height(h);
			$("#menu a").click(function(){
                $(this).parent().siblings("li").children("a").removeClass("current");
                $(this).addClass("current");
            });
        });
        
       
        function showLocale(objD) 
        {
            var dn, str;
            var hh = objD.getHours();
            var mm = objD.getMinutes();
            var ss = objD.getSeconds();
           if($.browser.msie)
          {  
            str =  objD.getYear()+ "-" +(objD.getMonth() + 1) + "-" + objD.getDate() +"";
           }
          else
          {
            str =  1900+objD.getYear()+ "-" +(objD.getMonth() + 1) + "-" + objD.getDate() +"";
          }  
            if(hh<10) hh = '0' + hh;
            if(mm<10) mm = '0' + mm;
            if(ss<10) ss = '0' + ss;
            str += " " + hh + ":" + mm + ":" + ss;
            return(str);
        }
        function tick() 
        {
            var today;
            today = new Date();
            document.getElementById("localtime").innerHTML = " 时间: " + showLocale(today);
            window.setTimeout("tick()", 1000);
        }
        tick();

    </script>

</body>
</html>
